<?php include HEADER; //echo date('Y-m-d')?>
<style>
.well a {color:#08c;font-size:11px;}
</style>
<div class="well well-small" style="width:60%">
  <div class="module-title nav-header">Tivi mới nhất</div>
  <div class="row-striped"> <span style="margin-top: -25px;" class="badge badge-info hasTooltip pull-right" title="Tổng số tivi"><?php echo $countTv; ?></span>
    <?php if($lsttv5 && count($lsttv5)>0) : ?>
    <?php 	foreach($lsttv5 as $item) : ?>
    <div class="row-fluid">
      <div class="span9" style="width:100%"> 
	  	<!--<a class="btn btn-micro disabled jgrid" title="Chưa được công bố"><i class="icon-unpublish"></i></a> -->
		<strong class="row-title"> 
			<a href="<?php echo __URL_BASE.'index.php?rt=admin_tivi/edit&tivi_id='.$item->id ?>"> <?php echo $item->TenTivi ?></a>	 		</strong> 
		<small class="hasTooltip" data-original-title="MOD_NOTE_QUESTION_CREATED_BY"> </small> 
	  </div>
    </div>
    <?php endforeach; endif; ?>
  </div>
</div>

<!--hoa don------------------------------------------------------------------------------>

<div class="well well-small" style="width:25%;margin-left: 40px;">
  <div class="module-title nav-header">Hóa đơn mới nhất</div>
  <div class="row-striped"> <span style="margin-top: -25px;" class="badge badge-info hasTooltip pull-right" title="Tổng số hóa đơn"><?php echo $countHD; ?></span>
    <?php if($lsthd5 && count($lsthd5)>0) : ?>
    <?php 	foreach($lsthd5 as $item) : ?>
    <div class="row-fluid">
      <div class="span9" style="width:60%"> 
	  	<!--<a class="btn btn-micro disabled jgrid" title="Chưa được công bố"><i class="icon-unpublish"></i></a> -->
		<strong class="row-title"> 
			<a href="<?php echo __URL_BASE.'index.php?rt=admin_order/edit&hoadon_id='.$item->id ?>"> <?php echo $item->MaHoaDon ?></a>	 		</strong> 
		<small class="hasTooltip" data-original-title="MOD_NOTE_QUESTION_CREATED_BY"> </small> 
	  </div>
	  <div class="span3" style="font-size:10px;width:75px;">
		<span class="small" ><i class="icon-calendar"></i> <?php echo date('d-m-Y',strtotime($item->NgayDatHang)) ?></span>
	  </div>
    </div>
    <?php endforeach; endif; ?>
  </div>
</div>
<!--comment------------------------------------------------------------------------------------------>
<div class="well well-small" style="width:55%;">
  <div class="module-title nav-header">Bình luận mới nhất</div>
  <div class="row-striped"> <span style="margin-top: -25px;" class="badge badge-info hasTooltip pull-right" title="Tổng số tài khoản"><?php echo $countC; ?></span>
    <?php if($lstc5 && count($lstc5)>0) : ?>
    <?php 	foreach($lstc5 as $item) : ?>
    <div class="row-fluid">
      <div class="span9" style="width:72%"> 
	  	<!--<a class="btn btn-micro disabled jgrid" title="Chưa được công bố"><i class="icon-unpublish"></i></a> -->
		<strong class="row-title"> 
			<a href="<?php echo __URL_BASE.'index.php?rt=admin_comment/edit&comment_id='.$item->id ?>"> <?php echo mb_substr($item->noidung,0,100,'utf-8') ?>...</a>	 		</strong> 
		<small class="hasTooltip" data-original-title="MOD_NOTE_QUESTION_CREATED_BY"> 
		
		</small> 
	  </div>
	  <div class="span3" style="font-size:10px;width:130px;">
		<span class="small" ><i class="icon-calendar"></i> <?php echo date('d-m-Y G:j:s',strtotime($item->thoigian)) ?></span>
	  </div>
    </div>
    <?php endforeach; endif; ?>
  </div>
</div>
<!--user------------------------------------------------------------------------------------------>
<div class="well well-small" style="width:30%;margin-left:40px;">
  <div class="module-title nav-header">Tài khoản mới nhất</div>
  <div class="row-striped"> <span style="margin-top: -25px;" class="badge badge-info hasTooltip pull-right" title="Tổng số tài khoản"><?php echo $countU; ?></span>
    <?php if($lstu5 && count($lstu5)>0) : ?>
    <?php 	foreach($lstu5 as $item) : ?>
    <div class="row-fluid">
      <div class="span9" style="width:67%"> 
	  	<!--<a class="btn btn-micro disabled jgrid" title="Chưa được công bố"><i class="icon-unpublish"></i></a> -->
		<strong class="row-title"> 
			<a href="<?php echo __URL_BASE.'index.php?rt=admin_user/edit&user_id='.$item->TenDangNhap ?>"> <?php echo $item->TenDangNhap ?></a>	 		</strong> 
		<small class="hasTooltip" data-original-title="MOD_NOTE_QUESTION_CREATED_BY"> 
		<?php
			if($item->Quyen == '0') echo 'Quản trị viên';
			else if($item->Quyen == '1') echo 'Quản lý';
			else echo 'Người dùng';
		?>
		</small> 
	  </div>
	  <div class="span3" style="font-size:10px;width:75px;">
		<span class="small" ><i class="icon-calendar"></i> <?php echo date('d-m-Y',strtotime($item->Created_Date)) ?></span>
	  </div>
    </div>
    <?php endforeach; endif; ?>
  </div>
</div>
<?php include FOOTER; ?>
